package ar.com.osdepym.agregacionafip.adapters;



public class ContenedorCheckbox extends Contenedor{
private Boolean checked = true;
	public ContenedorCheckbox(String nombre) {
		super(nombre);
		this.checked = true;
	}
	public ContenedorCheckbox(String nombre, Integer color) {
		super(nombre);
		this.setStateColor(color);
		this.checked = true;
	}
	public ContenedorCheckbox() {
		super("");
	}

	public ContenedorCheckbox(String nombre, Boolean checked) {
		super(nombre);
		this.checked = checked;
	}

	public Boolean getChecked() {
		return checked;
	}

	public void setChecked(Boolean checked) {
		this.checked = checked;
	}

	@Override
	public boolean equals(Object o) {
		Contenedor c = (Contenedor)o; 
		return c.getNombre().equals(this.getNombre());
	}
	
	
}
